package org.jdns.jfreechess.server.commands;

import org.jdns.jfreechess.server.CommandHandler;
import org.jdns.jfreechess.server.CommandName;

import io.netty.channel.Channel;

@CommandName(names = { "quit" })
public class QuitCommand implements Command {
  @CommandHandler
  public void handleUserQuit(Channel channel) {
    channel.write("Thanks for playing!");
    channel.close();
  }
}
